package com.yjy.controller.vo4;

import com.yjy.util.ValidatorUtil;
import com.yjy.util.custom.CustomDateFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class UserVo4 {

    @NotBlank
    @Pattern(regexp = ValidatorUtil.REGEX_DATE_FORMAT, message = "出生日期格式有误")
    @CustomDateFormat(format = "yyyy-MM-dd", message = "出生日期不合法")
    private String brithday;

    public String getBrithday() {
        return brithday;
    }

    public void setBrithday(String brithday) {
        this.brithday = brithday;
    }
}
